package cn.edu.nenu.control;

import javax.ejb.Local;

import cn.edu.nenu.contract.eto.TaskSolverUnknownException;
import cn.edu.nenu.contract.eto.TaskUnknownException;
@Local
public interface DbEdit {
	/**
	 *  Request a Task Solver to make assignment for a specific task.
	 *  This results in Task Solver "scoring" 1.25 times work hour per actual work hour used on the task.<br>
	 *  So, if MR. Young, a Task Solver invited to work on ProgrammingTask1, works 4 hours on ProgrammingTask1 
	 *  the system will record him as having worked 5 hours.<br>
	 *  Additionally this method is responsible for sending an email to the Task Solver in question.
	 *  @param employeeId : int - Task solver to invite
	 *  @param taskId : int - Work task to invite taskSolver for
	 *  @return List of TaskSolverDTO - null if none
	 *  @throws TaskSolverUnknownException - thrown when Task Solver is not recognized.
	 *  @throws TaskUnknownException - thrown when parsed work task-parameter is not recognized
	 */	
	public void requestTaskSolverAssignment(int employeeId, int taskId)//TODO to be done zhaojingjing
	throws TaskSolverUnknownException, TaskUnknownException;
}
